/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"2B6D86EC-E9A4-460A-B3BA-25BDD759FFE9",variableType:4}
 */
var fexc = null;


/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"8FE670B8-FC9E-42C1-A36D-57D06D718EC8"}
 * @AllowToRunInFind
 */
function Buscar(event) {
	if (controller.find() == false)
	{
		globals.DIALOGS.showErrorDialog('Error','Error en la busqueda','OK')
		return
	}
	
	excudh_excursio_id = fexc
	
	var cuantos = controller.search()
	if (cuantos == 0)
	{
		controller.loadAllRecords()
		globals.DIALOGS.showWarningDialog('Aviso','No se encontraron resultados','OK')
	}
}
